home *** CD-ROM | disk | FTP | other *** search
- Path: fontina.cs.wisc.edu!flisakow
- From: flisakow@fontina.cs.wisc.edu (Shaun Flisakowski)
- Newsgroups: crl.general,comp.sys.sun.misc,comp.unix.sys5.misc,comp.lang.c,sci.math
- Subject: Re: Problem with C for the mathematical programm
- Date: 1 Feb 1996 09:00:24 GMT
- Organization: U of Wisconsin CS Dept
- Message-ID: <4epvf8$534@spool.cs.wisc.edu>
- References: <4epq2e$h4b@crl2.crl.com>
- NNTP-Posting-Host: fontina.cs.wisc.edu
-
- In article <4epq2e$h4b@crl2.crl.com>, Iouri Sorkine <sorkin@crl.com> wrote:
- >
- >I execute "cc name.c" and receive "ld: Undefined symbol
- > _cos
- > _sin
- >and so on... ".
- >What's wrong?
-
- You didn't link in the math library, try something like:
-
- cc -c name.c
- cc -o name name.o -lm
-
- --
- Shaun flisakow@cs.wisc.edu
-
- "In your heart you know its flat."
- -Flat Earth Society
-